package org.hyjiacan.deadqq.server;


import java.net.ServerSocket;

import org.hyjiacan.deadqq.server.listener.LoginListener;
import org.hyjiacan.deadqq.server.listener.RegistListener;
import org.hyjiacan.deadqq.server.window.ServerWindow;

public class Server {
	/**
	 * 登录端口号
	 */
	public static final int LOG_PORT = 10453;
	/**
	 * 注册端口号
	 */
	public static final int REG_PORT = 10454;
	/**
	 * 聊天端口号
	 */
	public static final int CHAT_PORT = 10455;

	private ServerSocket regskt;
	private ServerSocket chatskt;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ServerWindow sw = ServerWindow.getInstance();
		Thread trd = new Thread(sw);
		trd.start();
		new Thread(new LoginListener()).start();
		new Thread(new RegistListener()).start();
	}
}
